var http = require("http");
const { formatApi } = require("./commonJS2");
http
  .createServer(function (request, response) {
    response.writeHead(200, { "Content-Type": "text/html;" });
    response.write("<head><meta charset='utf-8'></head>");
    const api = formatApi("name=wxs&age=30");
    response.write(api);
    response.end("<br>Hello World,你哈珀");
  })
  .listen(8081);

console.log("Server running at http://127.0.0.1:8081/");
